<template>
	<view>
		<u-navbar :is-back="true" title="门店信息"></u-navbar>
		<view class="content">
			<view class="formBox">
				<view class="title">
					基本信息
				</view>
				<view>
					<view class="label">
						<span>部门名称：</span><span>{{userInfo.deptName}}</span>
					</view>
					<view class="label">
						<span>上级部门：</span><span>{{userInfo.companyName}}</span>
					</view>
					<view class="label">
						<span>联系人：</span><span>{{userInfo.contactName}}</span>
					</view>
					<view class="label">
						<span>联系电话：</span><span>{{userInfo.contactPhone}}</span>
					</view>
					<view class="label">
						<span>门店地址：</span><span>{{userInfo.addrDetail}}</span>
					</view>

				</view>

			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		computed: {
			userInfo() {
				return this.$store.state.userInfo;
			}
		}
	}
</script>

<style lang="less">
	.content {
		width: 100%;
		min-height: 100vh;
		background-color: #ededed;
		padding-top: 20rpx;
		padding-bottom: 20rpx;

		.formBox {
			width: 660rpx;
			padding: 15rpx 24rpx;
			margin-top: 0;
			margin-bottom: 20rpx;

			.title {
				font-size: 28rpx;
				color: #333;
				line-height: 80rpx;
				border-bottom: none;
			}

			.title:before {
				position: relative;
				top: 4rpx;
				content: "";
				display: inline-block;
				width: 8rpx;
				height: 25rpx;
				background: #177fff;
				border-radius: 4px;
				margin-right: 10rpx;
			}

			.subtitle {
				line-height: 60rpx;
				font-size: 28rpx;
				color: #666;
			}

			.label {
				display: flex;
				justify-content: space-between;
				line-height: 85rpx;
				font-size: 28rpx;
				color: #666666;
				border-bottom: 1px solid #ededed;

				span:last-child {
					color: #131313;
				}
			}

			.label:last-child {
				border-bottom: none;
			}

			.storeImage {
				display: flex;
				justify-content: space-between;
				margin: 20rpx 0;

				.img {
					width: 300rpx;
					height: 200rpx;
				}
			}

		}

		.formBox:last-child {
			margin-bottom: 0;
		}
	}
</style>
